﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Qiang.Data
{
    [Serializable]
    public enum SegmentDirection
    {
        None,
        Left,
        Right
    }

    public class DirectionReverse
    {
        public static SegmentDirection Reverse(SegmentDirection direction)
        {
            if (direction == SegmentDirection.Left)
            {
                return SegmentDirection.Right;
            }
            else if (direction == SegmentDirection.Right)
            {
                return SegmentDirection.Left;
            }
            return direction;
        }
    }

}
